/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vce.election.domain;

import com.vce.Audit;
import com.vce.Persistent;
import com.vce.Year;
import java.util.List;

/**
 *
 * @author Ggutierrez
 */
public class BallotCentre implements Persistent{
    private Long id;
    private Year year;
    private Town town;
    private int stateCode;
    private int townCode;
    private int code;
    private String description;
    private String location;
    private Long district;
    private Long registral;
    private Audit audit;
    /*private List<Jrv> jrvs;*/

    public BallotCentre() {
    }

    public BallotCentre(Year year, Town town, int code, String description, String location, Long registral, Audit audit) {
        this.year = year;
        this.town = town;
        this.code = code;
        this.description = description;
        this.location = location;
        this.registral = registral;
        this.audit = audit;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Year getYear() {
        return year;
    }

    public void setYear(Year year) {
        this.year = year;
    }

    public Town getTown() {
        return town;
    }

    public void setTown(Town town) {
        this.town = town;
    }
    
    public int getStateCode() {
        return stateCode;
    }

    public void setStateCode(int stateCode) {
        this.stateCode = stateCode;
    }
    
    public int getTownCode() {
        return townCode;
    }

    public void setTownCode(int townCode) {
        this.townCode = townCode;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
    
    public Long getDistrict() {
        return district;
    }

    public void setDistrict(Long district) {
        this.district = district;
    }
    
    public Long getRegistral() {
        return registral;
    }

    public void setRegistral(Long registral) {
        this.registral = registral;
    }

    public Audit getAudit() {
        return audit;
    }

    public void setAudit(Audit audit) {
        this.audit = audit;
    }
    
    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if (!(other instanceof BallotCentre)) {
            return false;
        }
        BallotCentre _o = (BallotCentre) other;
        return id.equals(_o.id);
    }
    /*
    public List<Jrv> getJrvs() {
        return jrvs;
    }

    public void setJrvs(List<Jrv> jrvs) {
        this.jrvs = jrvs;
    }
    */

    @Override
    public String toString() {
        return this.description;
    }       
}